Before starting, let's recall
what you've learned so far. There are two types of microservices communication; synchronous and asynchronous. In synchronous communication, one microservice will
communicate with another microservice through a rest endpoint
over HTTP protocol. In asynchronous communication,
a chain of request is created between microservices while serving the
client request. HTTP/1.1, this is the default
request you make when you use any of the HTTP
client libraries, such as axios and superagent. Movies are a source of entertainment to fans
around the globe, and with the prevalence of
OTT platforms, Netflix, Amazon Prime, and so on, many regional movies
have become popular. An application to
capture the metadata for movies can help
fans around the globe explore the world of movies
and entertainment and be a part of reviews and ratings
of international cinema. Users can give their own
reviews and ratings of a movie and read reviews
given by other users. Also, based on these
reviews and ratings, they can decide on
which movies to watch. In this section of the course, you'll perform an exercise
based on a movie review. Let's look at the
tasks to be performed. Create three
microservices for user, movie, and movie review. User will contain the username, email, and so on. Movie will contain details of movies such as movie
name, director name, and movie review, and movie review will
contain the userID, movie and other details
regarding movie. All three services will
run on their ports. Use MongoDB to store
the user, movie, and movie review details and use axios for connecting
the services. While performing the
practice exercise, you must ensure that
the solution is developed based on the
boilerplate code provided, and all three different services should run on different ports. All the services should have its model class for
creating the schema. Once created, the schema
needs to be exported.